﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StatePattern
{
    public class Class1
    {
        public void T1()
        {
            Work w = new Work();
            w.tickte = 1;
            w.DoWork();
            for (int i = 1; i < 24; i++)
            {
                w.tickte = i;
                w.Done = true;
                w.DoWork();
            }
            Console.ReadLine();
        }
    }
}
